<!--Descriptive page name, messages and instructions-->
<h2>Request an invite</h2>

<p>To get a free Archive of Our Own account while we're in beta, you'll need an invitation. There are currently <%= InviteRequest.count %> people on the waiting list.</p>
<!--/descriptions-->

<!--main content-->
<h3 class="landmark">Add yourself to the list</h3>
<%= form_for(@invite_request) do |f| %>
  <%= error_messages_for @invite_request %>

  <p>
    <%= f.label :email %>
    <%= f.text_field :email %>
  </p>

  <p class="submit">
    <%= f.submit 'Add me to the list' %>
  </p>
<% end %>

<h3>Wondering how long you'll have to wait?</h3>

<%= form_tag url_for(:action => :show), {:remote => true, :method => :get} do %>

  <p>
    <%= label_tag :email %>
    <%= text_field_tag :email %>
  </p>

  <p class="submit">
    <%= submit_tag 'Go' %>
  </p>
<% end %>

<div id="invite-status"></div>
<!--/content-->
